package com.haogu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haogu.entity.Leads;

import com.haogu.entity.PLeads;
import com.haogu.entity.VLeads;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface LeadsMapper extends BaseMapper<Leads> {
    List<VLeads> searchLeads(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,@Param("p") PLeads p);
    int updateTransformedInfoById(@Param("id") Integer id,@Param("userId") Integer userId,
                                  @Param("contactsId") Integer contactsId,@Param("customerId") Integer customerId);

    List<VLeads> searchLeadsChi(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,@Param("p") PLeads p);

    int updateOwnerUserId(@Param("leadsId") Integer leadsId,@Param("userId") Integer userId,@Param("time") Date time);

    int updateDeleteTime(@Param("date") Date date,@Param("id") Integer id);

}
